]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-screenshot: Use mutter paint signals to optionally draw cursor
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 13 Feb 2019 01:23:41 +0000 (02:23 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 1 Mar 2019 17:12:53 +0000 (17:12 +0000)
commitb3e178af9d4d3d7abbccae8658cc84896fed7ede
treec58d360933e7fae1c2f1ebd240e7767db6b12f1d
parent559ec8750a3da7026163f817d3e6d57f9dd953bd
shell-screenshot: Use mutter paint signals to optionally draw cursor

Under wayland, if the cursor should be included when doing a fullscreen
screenshot, we can rely on mutter "paint" signal to have it composited for free.
Otherwise if it's not requested, we can use the "actors-painted" signal to get a
stage texture before the mouse overlay has been added.

Instead, under X11 or when only a window screenshot is requested, we still
need to draw it manually.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5
src/shell-screenshot.c